package com.yoga.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yoga.model.Classroom;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author yan
 * @date 2025/8/16
 */
@Mapper
public interface ClassroomMapper extends BaseMapper<Classroom> {
    default Page<Classroom> searchAll(Page<Classroom> page, Classroom classroom){
        LambdaQueryWrapper<Classroom> qw = new LambdaQueryWrapper<>(classroom);
        return this.selectPage(page,qw);
    }
}
